﻿using Mangox.Model.MangoxDB;
using Mangox.Model.MyBusinessDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mangox.Model.Stock
{
    public class WxLoginParam
    {
        public string openid { get; set; }
        public string session_key { get; set; }
        public string unionid { get; set; }
        public string errcode { get; set; }
        public string errmsg { get; set; }
    }

    /// <summary>
    /// 获取access_token
    /// </summary>
    public class WxAccTokenResult
    {
        public string access_token { get; set; }
        public string expires_in { get; set; }
        public string errcode { get; set; }
        public string errmsg { get; set; }
    }

    /// <summary>
    /// 授权后保存详细信息
    /// 自定义用户资料保存
    /// </summary>
    public class WxAuthParam: M_User
    {
        public string openid { get; set; }
        public string nickName { get; set; }
        public string gender { get; set; }
        public string language { get; set; }
        public string city { get; set; }
        public string province { get; set; }
        public string country { get; set; }
        public string avatarUrl { get; set; }

    }
    /// <summary>
    /// 圈子List result
    /// </summary>
    public class MomentsMsgResult : T_MomentsMsg
    {
        public string Openid { get; set; }
        public string UnionId { get; set; }
        public string NickName { get; set; }
        public string Gender { get; set; }
        public string City { get; set; }
        public string Province { get; set; }
        public Nullable<System.DateTime> CreateTime { get; set; }
        public string UserName { get; set; }
    }
    
    /// <summary>
    /// 单条圈子+评论 result
    /// </summary>
    public class MomentsMsgComment
    {
        public User User { get; set; }
        public T_MomentsMsg MomentsMsg { get; set; }
        public List<T_Comment> CommentList { get; set; }
    }
    
}
